import { createRouter, createWebHistory } from 'vue-router'
import User from '../views/User.vue'
import Order from '../views/Order.vue'
import Exam from '../views/Exam.vue'

const routes = [
  {
    path: '/',
    redirect: '/user'  // 默认路由
  },
  {
    path: '/user',
    name: 'User',
    component: User
  },
  {
    path: '/exam',
    name: 'Exam',
    component: Exam
  },
  {
    path: '/order',
    name: 'Order',
    component: Order
  },
  // 其他路由配置...  
];
const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
